package com.onpositive.data.serializer.writers;

import com.onpositive.data.serializer.readers.DefaultReaderFactory;

public class DoubleWriter extends CollectionWriter<Double>{

	public DoubleWriter() {
		super( Double.class );		
	}

	@Override
	protected void writeValue( Double w ) {
		super.writeDoubleToStream( w );
	}

	@Override
	protected int getItemSize() {
		return 8;
	}

	@Override
	protected Double defaultObject() {
		return Double.NaN;
	}
	
	@Override
	protected int getID()
	{
		return DefaultReaderFactory.RW_ID_DOUBLE ;				
	}
	
}
